package app.framework.freemarker.util;

import java.util.Collections;
import java.util.Map;

/**
 * @author mh.z
 */
public class RenderUtilConfig {
    /** 请求上下文路径 */
    private String contextPath;
    /** URL 映射规则 */
    private Map<String, String> mappingUrls;
    /** 配置项 */
    private Map<String, Object> pagePlaceholders;

    private RenderUtilConfig() {
        this.contextPath = "";
        this.mappingUrls = Collections.emptyMap();
        this.pagePlaceholders = Collections.emptyMap();
    }

    public static RenderUtilConfig createDefault() {
        return new RenderUtilConfig();
    }

    public String getContextPath() {
        return contextPath;
    }

    public void setContextPath(String contextPath) {
        this.contextPath = contextPath;
    }

    public Map<String, String> getMappingUrls() {
        return mappingUrls;
    }

    public void setMappingUrls(Map<String, String> mappingUrls) {
        this.mappingUrls = mappingUrls;
    }

    public Map<String, Object> getPagePlaceholders() {
        return pagePlaceholders;
    }

    public void setPagePlaceholders(Map<String, Object> pagePlaceholders) {
        this.pagePlaceholders = pagePlaceholders;
    }

}
